﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%var list = v.data("list") as List<Calling>; %>

<%if (list.Count > 0){ %>
<% foreach (var row in list) { %>
<div class="infolist" onselectstart="return false;" title="<%=row.name %>-<%=row.typename %>" <%if (bllPowerGroupService.powercheck("communicate", "calledit", modelpowergroup))  { %>ondblClick="javascript:parent.onbotton('_{callmain_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.CallMainController().CallEdit,row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'calledit<%=row.Id %>',self.frameElement.getAttribute('name'));" <%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="5%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="10%">
				<input type="hidden" name="infoid" id="infoid" value="<%=row.Id %>">
				<input type="text" name="pid" size="3" value="<%=row.pid %>" class="infoInput" onclick="if(this.value=='<%=row.pid %>'){this.value = '';}else {this.select();}" onblur="if(this.value ==''){this.value ='<%=row.pid %>';}">
			</td>
			<td width="10%"><%=row.Id %></td>
			<td width="30%"><%=row.name %></td>
			<td width="20%"><%=row.typename %></td>
			<td width="10%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isclass==1){ %><font class="colorthree strong">_{callmain_audit_ok}<%}else{ %><font class="colorgreg strong">_{callmain_audit_no}<%} %></td>
					</tr>
				</table>
			</td>
			<td width="10%" id="infotype">
				<%if (bllPowerGroupService.powercheck("communicate", "calledit", modelpowergroup))  { %>
				<table>
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('_{callmain_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.CallMainController().CallEdit,row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'calledit<%=row.Id %>',self.frameElement.getAttribute('name'));" id="calledit<%=row.Id %>" href="#body" title="_{callmain_edit_title}" hidefocus="true">_{setedit_botton}</a></td>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">_{list_nothing_title}</td>
		</tr>
	</table>
</div>
<%} %>